package com.czk.model.flyweight;

public class ConcreteWebsite extends Website {
    // 网站发布形式
    private String type="";
    private User user;
    @Override
    public void use() {
        System.out.println("网站发布形式为"+type+","+user.getName()+"在使用"+type+"网站");
    }
    public ConcreteWebsite(String type,User user) {
        this.type = type;
        this.user=user;
    }
    public void user(){
        System.out.println(user.getName()+"在使用"+type+"网站");
    }
}
